﻿<UserControl x:Class="MediaAssistant.Controls.MusicSearchControl.MusicSearchControlView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:Controls="clr-namespace:MefBasic.Controls;assembly=MefBasic" mc:Ignorable="d"
             d:DesignHeight="300" d:DesignWidth="300" Width="220">
  <Controls:SearchBox Prompt="Search Music"
                        HorizontalAlignment="Center" VerticalAlignment="Center" Width="200" Height="22" Mode="Regular"
                              ToolTip="Type to search music" Command="{Binding SearchCommand}"
                              CommandParameter="{Binding Text, RelativeSource={RelativeSource Self}}">
    <Controls:SearchBox.ContextMenu>
      <ContextMenu>
        <MenuItem Header="Search Music" IsChecked="{Binding CanSearchMusic}" IsCheckable="True"/>
        <MenuItem Header="Search Album" IsChecked="{Binding CanSearchAlbum}" IsCheckable="True"/>
        <MenuItem Header="Search Artist" IsChecked="{Binding CanSearchArtist}" IsCheckable="True"/>
        <MenuItem Header="Search Composer" IsChecked="{Binding CanSearchComposer}" IsCheckable="True"/>
        <MenuItem Header="Search Genre" IsChecked="{Binding CanSearchGenre}" IsCheckable="True"/>
      </ContextMenu>
    </Controls:SearchBox.ContextMenu>
  </Controls:SearchBox>
</UserControl>
